using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

/// <summary>
/// 条件分支相关配配置
/// </summary>
public class WorkFlowDesignBranch : EntityBase
{
  

    /// <summary>
    /// 分支条件
    /// </summary>
    public List<BranchCondition> Conditions { get; set; }
    /// <summary>
    /// 设计标识
    /// </summary>
    public string WorkFlowDesignId { get; set; }
    /// <summary>
    /// 设计表
    /// </summary>
    public WorkFlowDesign Design { get; set; }
}

/// <summary>
/// 分支条件
/// </summary>
public class BranchCondition
{
    /// <summary>
    /// 条件关系 1且  2或
    /// </summary>
    public string ConditionMode { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    public string Description { get; set; }

    /// <summary>
    /// 条件字段
    /// </summary>
    public string Field { get; set; }

    /// <summary>
    /// 运算符  = 等于   != 不等于
    /// </summary>
    public string Operator { get; set; }

    /// <summary>
    /// 值
    /// </summary>
    public string Value { get; set; }
}